import request from '@/utils/axios';
import constant from "@/utils/constant";
import appName from "../appName";
// 客户信息列表
export function getCustomerInfoList(params) {
    return request({
      url: constant.customerApi+'/customermanage/customerInfo/list',
      method: 'post',
      data: params
    })
}
export function getCustomerInfoDetail(params) {
    return request({
      url: constant.customerApi+'/customermanage/customerInfo/detail',
      method: 'post',
      data: params,
      timeout: 50000
    })
}
export function checkModify() {
    return request({
        url: constant.customerApi+'/customermanage/customerInfo/checkModify',
        method: 'get'
    })
}
export function queryIndividualTax(params) {
    return request({
      url: constant.customerApi+'/customerManage/taxspf/queryIndividualTax',
      method: 'post',
      data: params
    })
}

export function getListNotepad(params) {
    return request({
      url: constant.customerApi+'/customermanage/notepad/list',
      method: 'post',
      data: params
    })
}
export function saveNotepadInfo(params) {
    return request({
      url: constant.customerApi+'/customermanage/notepad/modify',
      method: 'post',
      data: params
    })
}

export function getCustomerPolicy(params) {
    return request({
      url: constant.customerApi+'/customermanage/customerPolicy/list',
      method: 'post',
      data: params
    })
}

export function getMailaddress(params) {
    return request({
      url: constant.customerApi+'/customermanage/mailaddress/get',
      method: 'post',
      data: params,
      /*data:{
        policyNo:params,
      }*/
    })
}

export function updateMailaddress(params) {
    return request({
      url: constant.customerApi+'/customermanage/mailaddress/update',
      method: 'post',
      data:params
    })
}

export function saveCustomerInfo(params) {
    return request({
      url: constant.customerApi+'/customermanage/customerInfo/renewcustomer',
      method: 'post',
      data:params
    })
}

export function trustManage(params) {
    return request({
      url: constant.customerApi+'/customermanage/customerInfo/trustManage',
      method: 'post',
      data:params
    })
}

export function checkBlacklistInfo(params) {
    return request({
      url: constant.customerApi+'/customermanage/customerInfo/checkBlacklistInfo',
      method: 'post',
      data:params
    })
}


export function getHistoryRecord(params) {
    return request({
      url: constant.customerApi+'/customermanage/customerInfo/selectRecord',
      method: 'post',
      data:params
    })
}


export function getNationPageList(params) {
    return request({
      url: constant.customerApi+'/customermanage/customerInfo/nationPagelist',
      method: 'post',
      data:params
    })
}
export function getNationList() {
    return request({
      url: constant.customerApi+'/customermanage/customerInfo/nationlist',
      method: 'post'
    })
}

export function saveTaxspfInfo(params) {
    return request({
      url: constant.customerApi+'/customerManage/taxspf/updateIndividualTax',
      method: 'post',
      data:params
    })
}

export function initNotepad(params) {
    return request({
        url: appName.NEWUNDR+'/unipnd/notepad/initWfNotepad',
        method: 'post',
        data: params
    })
}

export function saveTrustManageInfo(params) {
    return request({
        url: constant.customerApi+'/customermanage/customerInfo/saveTrustManage',
        method: 'post',
        data: params,
        timeout:20000
    })
}

export function saveCopartnerManage(params) {
    return request({
        url: constant.customerApi+'/customermanage/customerInfo/saveCopartnerManage',
        method: 'post',
        data: params
    })
}

export function saveStockInfo(params) {
    return request({
        url: constant.customerApi+'/customermanage/customerInfo/saveStockInfo',
        method: 'post',
        data: params
    })
}

export function deleteCustomerInfo(params) {
    return request({
        url: constant.customerApi+'/customermanage/customerInfo/deleteCustomer',
        method: 'post',
        data: params
    })
}





export function getListNotepadIcd(params) {
    return request({
      url: constant.customerApi+'/customermanage/notepadicd/list',
      method: 'post',
      data: params
    })
}
export function queryIllDisability(params) {
    return request({
      url: constant.customerApi+'/customermanage/notepadicd/queryIllDisability',
      method: 'post',
      data: params,
      timeout:60000
    })
}
export function queryIll(params) {
    return request({
      url: constant.customerApi+'/customermanage/notepadicd/queryIll',
      method: 'post',
      data: params,
      timeout:60000
    })
}
export function queryIllBySearch(params) {
    return request({
      url: constant.customerApi+'/customermanage/notepadicd/queryIllBySearch',
      method: 'post',
      data: params,
      timeout:60000
    })
}
export function saveNotepadInfoIcd(params) {
    return request({
      url: constant.customerApi+'/customermanage/notepadicd/modify',
      method: 'post',
      data: params
    })
}

export function getNotePadIcdList(params) {
  return request({
    url: constant.customerApi+'/customermanage/notepadicd/getNotePadIcdList',
    method: 'post',
    data: params
  })
}

export function saveCheckManage(params) {
  return request({
    url: constant.imgoutApi+'/third/realname/verification/verify',
    method: 'post',
    data: params
  })
}

export function updateSalesmanName(params) {
    return request({
        url: constant.nbApi+'/third/salesman/updateSalesmanName',
        method: 'post',
        data: params
    })
}

export function selectSalesmanName(params) {
    return request({
        url: constant.nbApi+'/third/salesman/selectSalesmanName',
        method: 'post',
        data: params
    })
}
